package com.fifth.common.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 专区课程关联表
 * </p>
 *
 * @author 第五组
 * @since 2022-09-05
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_zone_business")
@ApiModel(value = "ZoneBusiness对象", description = "专区课程关联表")
public class ZoneBusiness implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private LocalDateTime gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("修改时间")
    private LocalDateTime gmtModified;

    @ApiModelProperty("状态(1:正常;0:禁用)")
    private Integer isDisable;

    @ApiModelProperty("逻辑删除  0正常  1已删除")
    @TableField(fill = FieldFill.INSERT)
    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty("专区编号")
    private String zoneId;

    @ApiModelProperty("商家id")
    private String bid;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("上下架   0上架  1 未上架")
    private Integer putaway;

    @ApiModelProperty("店铺实体类")
    @TableField(exist = false)
    private BusinessInfo businessInfo;

    @ApiModelProperty("店铺类别")
    @TableField(exist = false)
    private String sortname;

    @ApiModelProperty("最低价格")
    @TableField(exist = false)
    private Double gprice;


}
